package com.fenxiangtech.mall.dto;

import java.math.BigDecimal;

/**
 * @author zhangjiashun
 */
public class ProductStatus {

    private Long id;

    private String name;

    private String mainImgUrl;

    private boolean haveStock;

    private BigDecimal price;

    private Integer count;

    private BigDecimal totalPrice;

    public ProductStatus() {}

    /**
     * @param id
     * @param name
     * @param mainImgUrl
     * @param price
     * @param count
     */
    public ProductStatus(Long id, String name, String mainImgUrl, BigDecimal price, Integer count) {
        this.id = id;
        this.name = name;
        this.mainImgUrl = mainImgUrl;
        this.price = price;
        this.count = count;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainImgUrl() {
        return mainImgUrl;
    }

    public void setMainImgUrl(String mainImgUrl) {
        this.mainImgUrl = mainImgUrl;
    }

    public boolean isHaveStock() {
        return haveStock;
    }

    public void setHaveStock(boolean haveStock) {
        this.haveStock = haveStock;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
}
